package com.ssyx.user.controller;

import com.ssyx.user.service.UserService;
import com.ssyx.vo.user.LeaderAddressVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName:UserInnerController
 * Description:
 *
 * @Author kay
 * @Create 2024/5/22 9:20
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/user/leader")
public class UserInnerController {

    @Autowired
    private UserService userService;

    //提货点地址信息 LeaderAddressVo
    @GetMapping("/inner/getUserAddressByUserId/{userId}")
    public LeaderAddressVo getUserAddressByUserId(@PathVariable(value = "userId") Long userId) {
        return userService.getLeaderAddressVoByUserId(userId);
    }
}
